package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.ExamSubject;
import com.ruoyi.system.mapper.ExamSubjectMapper;
import com.ruoyi.system.service.IExamSubjectService;
import com.ruoyi.system.mapper.ExamSubjectMapper;
import com.ruoyi.system.domain.ExamSubject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class ExamSubjectServiceImpl implements IExamSubjectService {
    @Autowired
    private ExamSubjectMapper examSubjectMapper;

    public int deleteByPrimaryKey(Integer examId) {
        return examSubjectMapper.deleteByPrimaryKey(examId);
    }

    public int insert(ExamSubject record) {
        return examSubjectMapper.insert(record);
    }

    public int insertSelective(ExamSubject record) {
        return examSubjectMapper.insertSelective(record);
    }

    public ExamSubject selectByPrimaryKey(Integer examId) {
        return examSubjectMapper.selectByPrimaryKey(examId);
    }


    public List<ExamSubject> selectDataList(String delFlag) {
        return examSubjectMapper.selectDataList(delFlag);
    }

    public int updateByPrimaryKeySelective(ExamSubject record) {
        return examSubjectMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ExamSubject record) {
        return examSubjectMapper.updateByPrimaryKey(record);
    }
}